/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac2.client;

/**
 *
 * @author Korso
 */
public class PnltAltaMatricula extends javax.swing.JFrame {

    /**
     * Creates new form PnlAltaGrupo
     */
    public PnltAltaMatricula() {
        initComponents();
        super.setLocationRelativeTo(null);
    }

    @Override
    public java.awt.Image getIconImage() {
        java.awt.Image retValue = java.awt.Toolkit.getDefaultToolkit().
                getImage(ClassLoader.getSystemResource("resources/logo.png"));     
        return retValue;
    }    
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlAltaMatricula = new javax.swing.JPanel();
        Grupo = new javax.swing.JLabel();
        lblAceptaMatricula = new javax.swing.JLabel();
        lblTurnos = new javax.swing.JLabel();
        rdbTardes = new javax.swing.JRadioButton();
        rdbMañana = new javax.swing.JRadioButton();
        lblAlumno = new javax.swing.JLabel();
        txtAlumnos = new javax.swing.JTextField();
        btnConfirmar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        cmbCurso = new javax.swing.JComboBox();
        lblFechaIncio = new javax.swing.JLabel();
        spnFechaInicio = new javax.swing.JSpinner();
        spnFechaInicio1 = new javax.swing.JSpinner();
        lblFechaFin = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Gestión de Matrículas. Aceptar Matrícula.");
        setAlwaysOnTop(true);
        setIconImage(getIconImage());
        setName("frmAceptaMatricula"); // NOI18N
        getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));

        Grupo.setText("Grupo");

        lblAceptaMatricula.setBackground(new java.awt.Color(51, 255, 204));
        lblAceptaMatricula.setText("Aceptar Matrícula");
        lblAceptaMatricula.setOpaque(true);

        lblTurnos.setText("Turno");

        rdbTardes.setText("Tarde");
        rdbTardes.setEnabled(false);

        rdbMañana.setSelected(true);
        rdbMañana.setText("Mañana");
        rdbMañana.setEnabled(false);

        lblAlumno.setText("Alumno");

        txtAlumnos.setEditable(false);
        txtAlumnos.setText("Finn el Humano");

        btnConfirmar.setText("Confirmar");

        btnCancelar.setText("Cancelar");

        cmbCurso.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Estadística" }));

        lblFechaIncio.setText("Fecha Inicio");

        spnFechaInicio.setModel(new javax.swing.SpinnerDateModel(new java.util.Date(1349878200000L), null, null, java.util.Calendar.DAY_OF_MONTH));
        spnFechaInicio.setEnabled(false);

        spnFechaInicio1.setModel(new javax.swing.SpinnerDateModel(new java.util.Date(1381414200000L), null, null, java.util.Calendar.DAY_OF_MONTH));
        spnFechaInicio1.setEnabled(false);

        lblFechaFin.setText("Fecha Fin");

        javax.swing.GroupLayout pnlAltaMatriculaLayout = new javax.swing.GroupLayout(pnlAltaMatricula);
        pnlAltaMatricula.setLayout(pnlAltaMatriculaLayout);
        pnlAltaMatriculaLayout.setHorizontalGroup(
            pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblAceptaMatricula, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlAltaMatriculaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtAlumnos)
                    .addComponent(cmbCurso, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(pnlAltaMatriculaLayout.createSequentialGroup()
                        .addGroup(pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Grupo)
                            .addComponent(lblAlumno)
                            .addGroup(pnlAltaMatriculaLayout.createSequentialGroup()
                                .addGroup(pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(pnlAltaMatriculaLayout.createSequentialGroup()
                                        .addComponent(rdbMañana)
                                        .addGap(18, 18, 18)
                                        .addComponent(rdbTardes)
                                        .addGap(23, 23, 23)
                                        .addComponent(spnFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(pnlAltaMatriculaLayout.createSequentialGroup()
                                        .addComponent(lblTurnos)
                                        .addGap(129, 129, 129)
                                        .addComponent(lblFechaIncio)))
                                .addGap(18, 18, 18)
                                .addGroup(pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblFechaFin)
                                    .addComponent(spnFechaInicio1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 91, Short.MAX_VALUE))
                    .addGroup(pnlAltaMatriculaLayout.createSequentialGroup()
                        .addComponent(btnConfirmar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnCancelar)))
                .addContainerGap())
        );
        pnlAltaMatriculaLayout.setVerticalGroup(
            pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAltaMatriculaLayout.createSequentialGroup()
                .addComponent(lblAceptaMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblAlumno)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtAlumnos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(Grupo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cmbCurso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(14, 14, 14)
                .addGroup(pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTurnos)
                    .addComponent(lblFechaIncio)
                    .addComponent(lblFechaFin))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rdbMañana)
                    .addComponent(rdbTardes)
                    .addComponent(spnFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(spnFechaInicio1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlAltaMatriculaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnConfirmar)
                    .addComponent(btnCancelar))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        getContentPane().add(pnlAltaMatricula);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(PnltAltaMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(PnltAltaMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(PnltAltaMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(PnltAltaMatricula.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PnltAltaMatricula().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Grupo;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnConfirmar;
    private javax.swing.JComboBox cmbCurso;
    private javax.swing.JLabel lblAceptaMatricula;
    private javax.swing.JLabel lblAlumno;
    private javax.swing.JLabel lblFechaFin;
    private javax.swing.JLabel lblFechaIncio;
    private javax.swing.JLabel lblTurnos;
    private javax.swing.JPanel pnlAltaMatricula;
    private javax.swing.JRadioButton rdbMañana;
    private javax.swing.JRadioButton rdbTardes;
    private javax.swing.JSpinner spnFechaInicio;
    private javax.swing.JSpinner spnFechaInicio1;
    private javax.swing.JTextField txtAlumnos;
    // End of variables declaration//GEN-END:variables
}
